package com.aptemo.webetek.client.events;

import com.aptemo.webetek.shared.PickBean;
import com.google.gwt.event.shared.GwtEvent;

public class PickSelectedEvent
		extends GwtEvent<PickSelectedHandler>
{

	public static final GwtEvent.Type<PickSelectedHandler>	TYPE	= new GwtEvent.Type<PickSelectedHandler>();

	public PickBean getPick()
	{
		return pick;
	}

	private PickBean	pick;

	public PickSelectedEvent(PickBean pick)
	{
		this.pick = pick;
	}

	@Override
	protected void dispatch(PickSelectedHandler handler)
	{
		handler.onPicked(this);
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<PickSelectedHandler> getAssociatedType()
	{
		return TYPE;
	}

}
